home *** CD-ROM | disk | FTP | other *** search
- Path: news2.ios.com!usenet
- From: Keith Boruff <kboruff@village.ios.com>
- Newsgroups: comp.lang.c++
- Subject: Need help with an array of pointers
- Date: Tue, 26 Mar 1996 06:14:07 -0800
- Organization: Internet Online Services
- Message-ID: <3157FBAF.32A3@village.ios.com>
- NNTP-Posting-Host: ppp-1.ts-3.nyc.idt.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Suppose I have an array of pointers:
-
- char *WordPtr[] = {"Jack", "Joe", "Bob"};
-
- How do I print the address value of each pointer element (i.e., the
- address that each pointer points to)? The only addresses I seem to be
- able to print are the addresses of the array elements themselves.
-
- I would appreciate any help on this subject. An array of pointers is a
- confusing topic to me and I could use all the help I can get.
-
- Keith Boruff
- Long Island, NY
-